//package club.hicode.daydayup.uid;
//
//import net.xdevelop.snowflake.SnowflakeUidGenerator;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * Uid的配置
// * @author Liu Chunfu
// * @date 2018-08-23 下午7:50
// **/
//@Configuration
//public class UidConfiguration {
//
//	@Bean
//	public SnowflakeUidGenerator customerUidGenerator() {
//		long workerId = SnowflakeUidGenerator.getWorkerIdByIP(24);
//		return new SnowflakeUidGenerator(workerId);
//	}
//
//	// init multiple uid generators for different DB tables
//	@Bean
//	public SnowflakeUidGenerator orderUidGenerator() {
//		long workerId = SnowflakeUidGenerator.getWorkerIdByIP(24);
//		return new SnowflakeUidGenerator(workerId);
//	}
//}
